//
//  HongbaoTableViewCell.m
//  盘盈贷
//
//  Created by iOS on 15/3/25.
//  Copyright (c) 2015年 Yunpeng Technologies. All rights reserved.
//

#import "HongbaoTableViewCell.h"

@implementation HongbaoTableViewCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.jine = [[UILabel alloc] init];
        [self.contentView addSubview:self.jine];
        [self.jine release];
        self.yue  = [[UILabel alloc] init];
        [self.contentView addSubview:self.yue];
        [self.yue release];
        self.type = [[UILabel alloc] init];
        [self.contentView addSubview:self.type];
        [self.type release];
        self.zhangtai = [[UILabel alloc] init];
        [self.contentView addSubview:self.zhangtai];
        [self.zhangtai release];
        self.youxiaoqi = [[UILabel alloc] init];
        [self.contentView addSubview:self.youxiaoqi];
        [self.youxiaoqi release];
        self.shiyongtime = [[UILabel alloc] init];
        [self.contentView addSubview:self.shiyongtime];
        [self.shiyongtime release];
        self.shiyongtime1 = [[UILabel alloc] init];
        [self.contentView addSubview:self.shiyongtime1];
        [self.shiyongtime1 release];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.jine.frame = CGRectMake(20, 10, 160, 30);
    self.jine.textColor = [UIColor redColor];
    self.jine.font = [UIFont fontWithName:@"Helvetica-Bold" size:16];
   
    self.type.frame = CGRectMake(185, 20, 200, 20);
    self.type.font = [UIFont systemFontOfSize:13];
    //self.zhangtai.frame = CGRectMake(200, 35, 100, 20);
    self.youxiaoqi.frame = CGRectMake(20, 40, 180, 20);
    self.youxiaoqi.font = [UIFont systemFontOfSize:13];
    self.shiyongtime.frame = CGRectMake(185, 40, 50, 20);
    self.shiyongtime.text = @"有效期";
    self.shiyongtime.font = [UIFont systemFontOfSize:13];
    self.shiyongtime1.frame = CGRectMake(230, 40, 120, 20);
    self.shiyongtime1.font = [UIFont systemFontOfSize:13];
    
    self.yue.frame = CGRectMake(185, 70, 170, 20);
    self.yue.textColor = [UIColor redColor];
    self.yue.font = [UIFont fontWithName:@"Helvetica-Bold" size:13];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
